package com.qf.usefull.datedemo;

import java.util.Date;

public class Demo01 {

    public static void main(String[] args) {


//        Date date = new Date();
//        long time = date.getTime();


//        long timeMillis = System.currentTimeMillis();
//        Date date = new Date(timeMillis);
//        System.out.println(date);

//        Date date = new Date(1000*60*60);
//        System.out.println(date);


//        Date date01 = new Date();
//        System.out.println(date01); // 猜测 Date类型覆盖了Object的ToString方法
//        Date data02 = new Date();
//        System.out.println(data02);
//        System.out.println(date01.compareTo(data02));
    }
}
